<template>
  <div class="home">
    <el-container>
      <el-header style="background-color: rgb(48, 65, 86);color: aliceblue">
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Sidebar></Sidebar>
        </el-aside>
        <el-main>
          <Tabs></Tabs>
          <div style="margin:0 15px">
            <router-view/>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Sidebar from "../components/Sidebar";
import Tabs from "../components/Tabs";
import Header from "@/components/Header.vue";

export default {
  name: "Home",
  components: {
    Sidebar, Tabs, Header
  },
  data() {
    return {
      dialogFormVisible: false,
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      formLabelWidth: '120px',
    }
  },
}
</script>

<style scoped>
.home {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh
}

.el-container {
  padding: 0;
  margin: 0;
  height: 100%;
}

.el-header {
  background-color: #17B3A3;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  background-color: #D3DCE6;
  color: #333;
  line-height: 200px;
}

.el-main {
  color: #333;
  padding: 0;
}

a {
  text-decoration: none;
}
</style>